﻿using SqlSugar;

namespace FastEasy.Model.Models
{
    ///<summary>
    ///验证码表
    ///</summary>
    [SugarTable("AutoCode")]
    public partial class AutoCode
    {
        public AutoCode()
        {
        }

        /// <summary>
        /// Desc:编号
        /// Default:
        /// Nullable:False
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// Desc:验证码
        /// Default:
        /// Nullable:False
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// Desc:手机号
        /// Default:
        /// Nullable:True
        /// </summary>
        public string Phone { get; set; }

        /// <summary>
        /// Desc:邮箱
        /// Default:
        /// Nullable:True
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// Desc:过期时间 (当前时间+过期时间)的时间戳
        /// Default:
        /// Nullable:False
        /// </summary>
        public double ExpDate { get; set; }

        /// <summary>
        /// Desc:创建日期 默认为当前时间
        /// Default:DateTime.Now
        /// Nullable:True
        /// </summary>
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// Desc:修改日期 默认为当前时间
        /// Default:DateTime.Now
        /// Nullable:True
        /// </summary>
        public DateTime? UpdateDate { get; set; }
    }
}